/**
 * Created by lvlq on 16/4/24.
 */
var Sequelize = require("sequelize");
var sequelize = Util("sequelize");

var user = sequelize.define("user", {
    openid: {
        type: Sequelize.STRING,
        field: "openid",
        allowNull: false,
        defaultValue: ""
    },
    nick: {
        type: Sequelize.STRING,
        field: "nick",
        allowNull: false,
        defaultValue: ""
    },
    name: {
        type: Sequelize.STRING,
        field: "name",
        allowNull: false,
        defaultValue: ""
    },
    phone: {
        type: Sequelize.STRING,
        field: "phone",
        allowNull: false,
        defaultValue: ""
    },
    address: {
        type: Sequelize.STRING,
        field: "address",
        allowNull: false,
        defaultValue: ""
    }
}, {
    comment: "user 信息表"
});

module.exports = user;
